<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<script>
   
    //1. 获取event
    /*
     * IE:    window.event
     * 标准  xx.xx = function(e){}
     * 
   
    获取非行内样式 currentStyle()
                getComputedStyle()
    3.阻止事件传递
        IE：e.cancelBubble();
        其他： e.stopPropagation();
    4.阻止默认事件
        IE: e.returnValue = false;
            e.preventDefault();
    5. 获取键盘码
        e.keyCode
        e.which
    6. 获取滚动距离
        document.body.scrollTop /Left
        document.documentElement.scrollTop
    7.事件监听
    ele.attachEvent("onclick",function(){})
    标准 ele.addEventListener("click",funtion(){},false/true)
    
    8.获取事件源对象
     IE  e.srcElement
    标准 e.target
    
    */
   
</script>
<body>
    

</body>
</html>